﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <style type="text/css">
        a
        {
            font-size: 16px;
        }
        a:link
        {
            color: blue;
            text-decoration: none;
        }
        a:active:
        {
            color: red;
        }
        a:visited
        {
            color: purple;
            text-decoration: none;
        }
        a:hover
        {
            color: red;
            text-decoration: underline;
        }
    </style>
    <script>
        function test() {
            aa.location = "www.baidu.com";
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Repeater runat="server" ID="test">
            <ItemTemplate>
                <a href="#" onclick="test()">
                    <%#Eval("ID")%>
                </a>
            </ItemTemplate>
        </asp:Repeater>
    </div>
    <iframe id="aa" width="800" height="600"></iframe>
    </form>
</body>
</html>
